package encaps.entities;

import java.util.Collection;
import javax.ejb.CreateException;
import javax.ejb.EJBLocalHome;
import javax.ejb.FinderException;


public interface UserLocalHome extends EJBLocalHome {

    UserLocal create(String login, String avatar, String info, String contacts,
            String password, String email, String role) throws CreateException;

    UserLocal findByPrimaryKey(java.lang.Long key) throws FinderException;

    UserLocal findByLogin(String login) throws FinderException;

    Collection findAll();

    Collection findPaged(String login, String sortColumn, OrderType orderType, Integer from, Integer count);

    Integer getUsersCount(String login) throws FinderException;
}
